#pragma once

#include <Windows.h>
#include <string>
#include <vector>

using namespace std;

class Dictionary
{
	vector<string> mWords;
	HANDLE mAccessSem;

private:
	void Load(string _path);

public:
	enum MatchType : UINT
	{
		NO_MATCH,
		FULL_MATCH,
		PARTIAL_MATCH
	};
public:
	Dictionary(void);

	bool WordCanBeCompleted(string& _finalWord, string& _testWord, UINT _freePositions, UINT _startFreePositions);
	UINT WordExists(UINT _line);
};

